<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false"%>
<%@ page contentType="text/html; charset=UTF-8"%>

<div id="zhishilist">
	<c:forEach items="${zhishilist}" var="zhishi">
	<div class="node">
		<div class="head"><c:out value="${zhishi.title}" /></div>
		<div class="body"><c:out value="${zhishi.content}" /></div>
		<div class="foot"><span class="time"><c:out value="${zhishi.indb}" /></span>
			<c:if test="${zhishi.tags != ''}">
				<span class="tags">标签:<c:out value="${zhishi.tags}" /></span>
			</c:if>
		</div>
	</div>
	</c:forEach>
</div>

<div id="pagelist">
	<c:if test="${nextPage} gt 0">
		<a href="${pageContext.request.pathInfo}/p/${nextPage}" title="下一页">下一页</a>
	</c:if>
	<c:if test="${prevPage} gt 0">
		<a href="${pageContext.request.pathInfo}/p/${prevPage}" title="上一页">上一页</a>
	</c:if>	
</div>
